/*
 * @Author: your name
 * @Date: 2021-10-20 15:12:10
 * @LastEditTime: 2021-10-20 15:17:34
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \Vuec:\Users\86131\Desktop\project\payforknowledge\src\store\class\index.js
 */
import { classHotApi } from "../../utils/api";

const classHotModule = {
  state: {
    classHotList: [],
  },
  mutations: {
    changeClassHot(state, payload) {
      state.classHotList = payload.result;
    },
  },
  actions: {
    async getClassHot({ commit }) {
      const res = await classHotApi();
      commit("changeClassHot", res);
    },
  },
};

export default classHotModule;
